This page explains the most relevant aspects of the process I followed to create the website. Additionally, it details the problems I encountered during this project.
The development of this website involved several key steps:
During the development process, I encountered several challenges:
Initially, the background video was not displaying correctly. The issue was due to the video element not being positioned correctly and other elements overlapping it. I resolved this by setting the video element to a fixed position and ensuring it had a lower z-index than other content.
The Lottie animation was not loading as expected. This was caused by incorrect paths to the JSON files and the animation container not being properly sized. I fixed this by verifying the paths and adjusting the CSS to ensure the container occupied the full viewport.
The toggle switch for changing between light and dark modes was not aligned correctly. The issue was due to inconsistent padding and margin settings. I corrected this by standardizing the dimensions and alignment properties in the CSS.
The grid items in the technologies section were not aligning properly. This was due to extra margins and padding in the grid container and items. I resolved this by removing unnecessary margins and ensuring the grid layout was correctly defined.
There was a need to add a delay before destroying the current Lottie animation and loading a new one. I implemented this by using the setTimeout function to introduce a delay before calling the destroy method on the current animation.
Ensuring consistent styling across different elements, such as buttons and the toggle switch, was challenging. I achieved this by defining common styles in the CSS and applying them uniformly to all relevant elements.
Throughout the development process, I encountered several challenges, but by systematically addressing each issue, I was able to create a functional and visually appealing portfolio website. This document serves as a record of the problems faced and the solutions implemented.